<template>
  <payment-address ref="paymentAddress"></payment-address>
</template>

<script>
  import PaymentAddress from 'views/paymentAddress';

  export default {
    data() {
      return {};
    },

    created() {
      window.unReloadStatus = true;
      wx.hideShareMenu();
      window.addEventListener('wxshow', () => {
        let actionData = window.actionData;
        if (actionData === undefined) {
          return;
        }
        delete window.actionData;

        let type = actionData.type;
        if (type !== undefined) {
          this.$refs['paymentAddress'][type](actionData.data);
        }
      });
    },

    components: {
      PaymentAddress
    }
  };

</script>
